Adwaita: more links styling
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 18 Jun 2014 14:07:59 +0000 (16:07 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 18 Jun 2014 14:07:59 +0000 (16:07 +0200)
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index e124f858ad2f9d17aa2f54e6c5262d8e83f3fad1..adfa4d7bd5fae3e5d74232df8dcb03968ab44601 100644 (file)
@@ -360,20 +360,30 @@ GtkColorButton.button { padding: 4px; } // Uniform padding on the GtkColorButton
  * Links *
  *********/
 
-GtkLinkButton.button {
+*:link {
+  color: $selected_bg_color; //FIXME use a proper color
+  &:hover, &:active, &:visited {
+    color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
+  }
+  &:backdrop, &:backdrop:hover {
+    color: $selected_bg_color;
+  }
+}
+
+.button:link, .button:visited {
   color: $selected_bg_color; //FIXME use a proper color
   @extend %undecorated_button;
   text-shadow: none;
   &:hover, &:active {
-    color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
     @extend %undecorated_button;
+    color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
     text-shadow: none;
   }
   &:backdrop {
-    color: $selected_bg_color;
     @extend %undecorated_button; //This shouldn't be needed but avoids
                                  //a weird transition which for some reason
                                  //makes borders blink on hover
+    color: $selected_bg_color; //FIXME use a proper color
   }
 }
 
index b12301e7fb7172d7676f1164a3e4056232d41044..934bd8d36f4235e7d610bbf3a21c226d9609702e 100644 (file)
     border-radius: 3px;
     border-style: solid; }
 
-GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active, GtkLinkButton.button:backdrop, .notebook tab .button {
+.button:link, .button:visited, .button:link:hover, .button:link:active, .button:visited:hover, .button:visited:active, .button:link:backdrop, .button:visited:backdrop, .notebook tab .button {
   border-color: transparent;
   background-color: transparent;
   background-image: none;
@@ -478,13 +478,20 @@ GtkColorButton.button {
 /*********
  * Links *
  *********/
-GtkLinkButton.button {
+*:link {
+  color: #215d9c; }
+  *:link:hover, *:link:active, *:link:visited {
+    color: #7397bc; }
+  *:link:backdrop, *:link:backdrop:hover {
+    color: #215d9c; }
+
+.button:link, .button:visited {
   color: #215d9c;
   text-shadow: none; }
-  GtkLinkButton.button:hover, GtkLinkButton.button:active {
+  .button:link:hover, .button:link:active, .button:visited:hover, .button:visited:active {
     color: #7397bc;
     text-shadow: none; }
-  GtkLinkButton.button:backdrop {
+  .button:link:backdrop, .button:visited:backdrop {
     color: #215d9c; }
 
 /*****************
index 5ad9a37a8242cba2eb714d9956d6f2eeb6eaa1be..7554c6500e32c5dacafb638ce887f4f8247c4051 100644 (file)
     border-radius: 3px;
     border-style: solid; }
 
-GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active, GtkLinkButton.button:backdrop, .notebook tab .button {
+.button:link, .button:visited, .button:link:hover, .button:link:active, .button:visited:hover, .button:visited:active, .button:link:backdrop, .button:visited:backdrop, .notebook tab .button {
   border-color: transparent;
   background-color: transparent;
   background-image: none;
@@ -478,13 +478,20 @@ GtkColorButton.button {
 /*********
  * Links *
  *********/
-GtkLinkButton.button {
+*:link {
+  color: #4a90d9; }
+  *:link:hover, *:link:active, *:link:visited {
+    color: #3e6b97; }
+  *:link:backdrop, *:link:backdrop:hover {
+    color: #4a90d9; }
+
+.button:link, .button:visited {
   color: #4a90d9;
   text-shadow: none; }
-  GtkLinkButton.button:hover, GtkLinkButton.button:active {
+  .button:link:hover, .button:link:active, .button:visited:hover, .button:visited:active {
     color: #3e6b97;
     text-shadow: none; }
-  GtkLinkButton.button:backdrop {
+  .button:link:backdrop, .button:visited:backdrop {
     color: #4a90d9; }
 
 /*****************